package com.VancouverTongue.bean;

import java.sql.SQLException;
import java.util.Date;

import com.VancouverTongue.database.DataManager;
import com.VancouverTongue.database.HelpObj;

public class Block {
	
	//front end
	String userId="";
	String blockedBy="";
	String expire="";
	String message="";
	//data end 
	
	public Block()
	{
		userId = null;
		blockedBy = null;
		expire = null;
	}
	public Block(String userId, String blockBy,String expire,String message) throws SQLException
	{
		this.userId = userId;
		this.blockedBy = blockBy;
		this.expire = expire;
		this.message = message;
	}
	
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getBlockedBy() {
		return blockedBy;
	}
	public void setBlockedBy(String blockedBy) {
		this.blockedBy = blockedBy;
	}
	public String getBlockBy() {
		return blockedBy;
	}
	public void setBlockBy(String blockBy) {
		this.blockedBy = HelpObj.HTMLcheck(blockBy);
		this.blockedBy = HelpObj.checkString(this.blockedBy, 15);
	}
	

	public String getExpire() {
		return expire;
	}
	public void setExpire(String expire) {
		this.expire = expire;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = HelpObj.HTMLcheck(message);
	}

	
}
